﻿#ifndef ADMINMENU_H
#define ADMINMENU_H
#include <QList>
#include <QDialog>
#include <QStandardItemModel>
#include "infoteacher.h"
#include "fileoperator.h"
#include "modelset.h"
#include "infoadmin.h"
#include "adminaddnewcourse.h"
#include "adminaddnewperson.h"
#include "adminmodifycourseinfo.h"
#include "adminmodifypersoninfo.h"
#include <QMessageBox>
#include <QStandardItem>


//管理员菜单 这里面就有登录的相关信息了
namespace Ui {
class adminMenu;
}

class adminMenu : public QDialog
{
    Q_OBJECT

public:
    explicit adminMenu(QWidget *parent = nullptr);
    ~adminMenu();
    //读取用户输入的登录id
    void getLoginId(QString loginId);
    //设置管理员对象
    void setAdminObject();

private slots:
    void on_btn_check_student_clicked();

    void on_btn_check_course_info_clicked();

    void on_btn_check_tea_info_clicked();

    void on_btn_exit_clicked();
    
    void on_btn_check_info_clicked();

    void on_btn_add_course_clicked();

    void on_btn_add_stu_or_tea_info_clicked();

    void on_btn_modify_stu_or_tea_info_clicked();

    void on_btn_modify_course_info_clicked();

    void sortView(int a);

    void on_btn_confirm_clicked();

    void on_btn_exit_check_clicked();

    void on_btn_modify_password_clicked();

    void on_btn_exit_2_clicked();

    void on_btn_confirm_2_clicked();

    void on_btn_check_tea_require_clicked();

    void on_btn_confirm_3_clicked();

    void on_btn_refuse_clicked();

    void on_btn_quit_clicked();

    void on_btn_delete_info_clicked();

private:
    Ui::adminMenu *ui;
    QStandardItemModel *model;
    QString loginId;
    fileOperator *op;
    adminInfo *admInfo;
    modelSet *setM;
    adminAddNewCourse *addView1;
    adminAddNewPerson *addView2;
    adminModifyCourseInfo *modifyView1;
    adminModifyPersonInfo *modifyView2;
    bool flag=0;
};

#endif // ADMINMENU_H
